home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ Startmenu Clear Logoff.xpl
< prev
next >
Wrap
Text File
|
1999-06-12
|
2KB
|
57 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="1"
"UIPATH"="Appearance\Start menu\Clear"
"NAME"="Clear Items on logoff"
"VERSION"="1.3"
"LANGUAGE"="VBScript"
"TEXT 1"="Clear all items on logoff"
"DESCRIPTION 1"="If this option is activated, Windows will clear all "Recent" entries that are available in the start menu, as soon as you logoff."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
"COMMENT 2"=" "
"COMMENT 3"="Thanks to Jon-Roar Selenius (jseleniu@online.no) for spotting the "Recent Documents always empty" bug."
'Declaration of some constants
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
'Called when the Plugin is started
SUB Plugin_Initialize
i=RegReadValue(sp&"ClearRecentDocsOnExit") 'Str!
if IsEmpty(i)=false then
SetUIElement 1,true
end if
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
s=sp & "ClearRecentDocsOnExit"
b=GetUIElement(1)
if b=true then
Call RegWriteValue(s,"1",1)
else
'Deactivating it by DELETING the value !
i=RegReadValue(s)
if IsEmpty(i)=false then
Call RegDeleteValue(s)
end if
end if
Call Restart
END SUB
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB